package com.dongnam.quanly.web;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.dongnam.quanly.web.system.AppConfig;

@ManagedBean(name = "DataConfigBean")
@SessionScoped
public class DataConfigBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String datepattern;
	private String fileExtensionPattern;
	private String growlShow;

	public DataConfigBean() {
		// TODO Auto-generated constructor stub
	}

	@PostConstruct
	public void init() {
		datepattern = AppConfig.getWebDateFormat();
		fileExtensionPattern = AppConfig.getFileExtensionPattern();
		growlShow = AppConfig.getGrowlShow();
	}

	public String getDatepattern() {
		return datepattern;
	}

	public void setDatepattern(String datepattern) {
		this.datepattern = datepattern;
	}

	public String getFileExtensionPattern() {
		return fileExtensionPattern;
	}

	public void setFileExtensionPattern(String fileExtensionPattern) {
		this.fileExtensionPattern = fileExtensionPattern;
	}

	public String getGrowlShow() {
		return growlShow;
	}

	public void setGrowlShow(String growlShow) {
		this.growlShow = growlShow;
	}

}
